import { createRouter,createWebHashHistory } from "vue-router";
const pageA = () => import("./components/pageA.vue")
const pageB = () => import("./components/pageB.vue")

const routes = [
    { path: "/", redirect: "/pageA" },
    {
        path: "/pageA",
        name: "pageA",
        component: pageA
    },
    {
        path: "/pageB",
        name: "pageB",
        component: pageB
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})
export default router
